package cn.xinfei.xdecision.common.model.datax.enums;

import lombok.Getter;

@Getter
public enum VariableEnum implements ICodeEnum,INameEnum{


    BASIC_VAR("1","基础变量","basicType","basicVar_"),
    CONSTANT_VAR("2","常变量","constType","constVar_"),
    DATABASE_VAR("3","数据库变量","sqlType","sqlVar_"),
    DERIVE_VAR("4","衍生变量","deriveType","deriveVar_"),
    INTERFACE_VAR("5","接口变量","interfaceType","interfaceVar_")
    ;

    VariableEnum(String code, String desc,String name) {
        this.code = code;
        this.desc = desc;
        this.name = name;
    }

    VariableEnum(String code, String desc,String name,String prefix) {
        this.code = code;
        this.desc = desc;
        this.name = name;
        this.copyPrefix = prefix;
    }


    private final String code;
    private String desc;
    private String name;
    private String copyPrefix;
}
